package com.emep.changzhi.analyse.repository.Technology;

import com.emep.changzhi.analyse.entity.Technology.Desulphurization;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author xy
 * @Description: 脱硫
 * @date 2018/8/28 16:15
 * @version V1.0
 */

public interface DesulphurizationRepository extends CrudRepository<Desulphurization, Long> {
    @Query("select * from data_desulphurization_info limit :pageSize")
    List<Desulphurization> desulphurizationHome(@Param("pageSize") Integer pageSize);
    @Query("select * from data_desulphurization_info where token(id)>token(:id) limit :pageSize")
    List<Desulphurization> desulphurizationFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);
}
